﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace SharePointUtilitiesForDevelopers.Tests
{
    /// <summary>
    ///Test class for <see cref="SharePointBuiltInFieldId"/>.
    ///</summary>
    [TestClass]
    public class SharePointBuiltInFieldIdTest
    {

        [TestMethod]
        public void Contains_returns_true_when_searching_by_field_id_as_string()
        {
            var fieldId = "{5928ff1f-daa1-406c-b4a9-190485a448cb}";
            Assert.IsTrue(SharePointBuiltInFieldId.Contains(fieldId));
        }

        [TestMethod]
        public void Contains_return_true_when_searching_by_field_id_as_guid()
        {
            var fieldId = new Guid("{5928ff1f-daa1-406c-b4a9-190485a448cb}");
            Assert.IsTrue(SharePointBuiltInFieldId.Contains(fieldId));
        }
    }
}
